<template>
  <div id="app">
    <Nav></Nav>

    <router-view></router-view>



  </div>
</template>

<script>

import Nav from "./components/Nav.vue"




export default {
  name: 'App',
  components: {
    Nav,

},
methods:{
  reload(){
    window.location.reload()
},

},
  watch:{
    $route(to,from){
      console.log(to.path)
      console.log(from.path)
      if(to.path!=from.path){
        console.log(true)
          this.reload()

      }
    }

      }
    }






</script>

<style>


</style>
